package com.sy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sy.pojo.Orders;
import com.sy.vo.CourseUserVO;
import com.sy.vo.OrdersVo;

import java.util.List;

public interface OrdersMapper extends BaseMapper<Orders> {
    /**
     * 订单分页查询
     * @param page
     * @param name
     * @return
     */
    Page<OrdersVo> findAll(Page<OrdersVo> page, String name);

    /**
     * 用户端-查询订单信息
     * @param userId
     * @return
     */
    List<OrdersVo> getOrdersByUser(Long userId);
}
